package com.cjx.yuanshenstartforumbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cjx.yuanshenstartforumbackend.domain.Article;
import com.cjx.yuanshenstartforumbackend.domain.dto.ArticleQueryDto;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
* @author cjx
* @description 针对表【article(文章表)】的数据库操作Mapper
* @createDate 2023-12-23 19:23:43
* @Entity generator.domain.Article
*/
public interface ArticleMapper extends BaseMapper<Article> {


    /**
     * 条件分页查询
     * @param page 分页条件
     * @param articleQueryDto 查询条件
     */
//    @MapKey("aid")
    IPage<Map> selectMyPage(IPage<Map> page, @Param("articleQueryDto") ArticleQueryDto articleQueryDto);
}




